\section{model::album Class Reference}
\label{classmodel_1_1album}\index{model::album@{model::album}}
This class represents an album.  


{\tt \#include $<$album.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{album} ()\label{classmodel_1_1album_24d036289a89e318ba07e8a424307cc7}

\item 
\bf{album} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em album creates an album from an dom-node \item\end{CompactList}\item 
\bf{album} (const string \&name, const list$<$ \bf{model::title} $>$ t)
\begin{CompactList}\small\item\em album creates a album with a name, and a list of titles. \item\end{CompactList}\item 
\bf{$\sim$album} ()\label{classmodel_1_1album_91476b2c7988ecc95b3d791010b061d5}

\item 
void \bf{parse} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em parse parses a dom-node to the internal structure of the album \item\end{CompactList}\item 
void \bf{set\_\-name} (const string \&name)\label{classmodel_1_1album_c019b31739fe78380a5d84ca47890e8e}

\begin{CompactList}\small\item\em set\_\-name sets the name of the album \item\end{CompactList}\item 
const string \& \bf{get\_\-name} () const \label{classmodel_1_1album_9c016738a310c03aae2dfc5f6e4ebd97}

\begin{CompactList}\small\item\em get\_\-name returns the name of the album \item\end{CompactList}\item 
void \bf{set\_\-titles} (const list$<$ \bf{model::title} $>$ \&t)\label{classmodel_1_1album_8412d19307b725e4bebaf6f991bd8085}

\item 
const list$<$ \bf{model::title} $>$ \& \bf{get\_\-titles} () const \label{classmodel_1_1album_35907506ff73ac2dfe44b556e7a8496b}

\begin{CompactList}\small\item\em get\_\-titles returns a list of titles the album contains \item\end{CompactList}\item 
list$<$ \bf{model::title} $>$ \& \bf{get\_\-titles} ()\label{classmodel_1_1album_a03051324dd60328a3366d2673701782}

\begin{CompactList}\small\item\em get\_\-titles returns a list of titles the album contains \item\end{CompactList}\item 
void \bf{print} () const \label{classmodel_1_1album_b1f4f475fee6fb737c600305d826886a}

\begin{CompactList}\small\item\em print prints the album. For debug purposes only. \item\end{CompactList}\item 
string \bf{to\_\-xml} () const \label{classmodel_1_1album_6585ac199d7a3a1de2f9763d9ed94d99}

\begin{CompactList}\small\item\em to\_\-xml prints the xml-structure of the album \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents an album. 



Definition at line 40 of file album.h.

\subsection{Constructor \& Destructor Documentation}
\index{model::album@{model::album}!album@{album}}
\index{album@{album}!model::album@{model::album}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::album::album (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1album_40672536d5c7ffba80e92c3335828b6c}


album creates an album from an dom-node 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the node from which the album should be created \end{description}
\end{Desc}


Definition at line 3 of file album.cpp.

\begin{Code}\begin{verbatim}4 {
5         parse(node);
6 }
\end{verbatim}\end{Code}


\index{model::album@{model::album}!album@{album}}
\index{album@{album}!model::album@{model::album}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::album::album (const string \& {\em name}, const list$<$ \bf{model::title} $>$ {\em t})\hspace{0.3cm}{\tt  [inline]}}\label{classmodel_1_1album_8fb51617ab1218059b02fae980d8b048}


album creates a album with a name, and a list of titles. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]is the name of the album. \item[{\em t}]is a list of titles. \end{description}
\end{Desc}


Definition at line 57 of file album.h.

\begin{Code}\begin{verbatim}58                 : _name(name), _titles(t) {}
\end{verbatim}\end{Code}




\subsection{Member Function Documentation}
\index{model::album@{model::album}!parse@{parse}}
\index{parse@{parse}!model::album@{model::album}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void model::album::parse (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1album_d30505c61c151305ee7b800adf368b0b}


parse parses a dom-node to the internal structure of the album 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the dom-node which should be parsed \end{description}
\end{Desc}


Definition at line 8 of file album.cpp.

\begin{Code}\begin{verbatim}9 {
10         _titles.clear();
11         _name = node.find_attrib("name");
12         boost::shared_ptr<model::dom> ptr(
13                 node.find("title"));
14         while(*ptr) {
15                 _titles.push_back(model::title(*ptr));
16                 ptr = ptr->next_tag();
17         }
18 }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
model/album.h\item 
model/album.cpp\end{CompactItemize}
